<table>

  <tr>
    <td>
      <a href="#" onClick="checkAll(true);"><g:message code="button.checkAll" default="Check All"/></a>|
      <a href="#" onClick="checkAll(false);"><g:message code="button.uncheckAll" default="Uncheck All"/></a>
    </td>
  </tr>

  <g:each var="entry" in="${members}">
    <tr>
      <td>
        <%
          def checked = false
          activityInstance.personAttend?.each {
            if (it.id == entry.id)
              checked = true
          }
        %>
        <g:checkBox name="peopleAttendCheckBox" class="peopleAttendCheckBox" checked="${checked}" value="${entry.id}"/> ${entry.userRealName.encodeAsHTML()}
      </td>
    </tr>
  </g:each>
</table>